<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@include file="dbcon.jsp" %>
<%
	String title = web.getreValue("title");
	String target = web.getValue("target");
	String msg = web.getreValue("msg");
	
	if (msg.equals("")) {
		msg = title;
	}

	title = new String(title.getBytes("ISO-8859-1"), "UTF-8");
	msg = new String(msg.getBytes("ISO-8859-1"), "UTF-8");
%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset=UTF-8 />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>우선순위</title>

<!-- 모바일 웹 페이지 설정 -->
<link rel="shortcut icon" href="assets/ico/favicon.png" />
<link rel="apple-touch-icon-precomposed"
	href="assets/ico/apple-touch-icon-57-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="assets/ico/apple-touch-icon-72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="assets/ico/apple-touch-icon-114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="assets/ico/apple-touch-icon-144-precomposed.png" />

<!-- bootstrap -->
<link rel="stylesheet" type="text/css"
	href="assets/css/bootstrap.min.css" />
<!-- Top makes css file -->
<link rel="stylesheet" type="text/css" href="assets/css/topCommon.css" />
<!-- 나눔고딕 웹 폰트 적용 -->
<link rel="stylesheet" type="text/css" href="assets/css/nanumfont.css" />
<!-- 반응형 웹을 지원하지 않을 경우 -->
<!-- <link rel="stylesheet" href="assets/css/non-responsive.css" /> -->

<!-- IE8 이하 버전 지원 -->
<!--[if lt IE 9]>
		<script type="text/javascript" src="assets/js/html5shiv.js"></script>
		<script type="text/javascript" src="assets/js/respond.min.js"></script>
		<![endif]-->

<!-- IE10 반응형 웹 버그 보완 -->
<!--[if gt IE 9]>
		<link rel="stylesheet" type="text/css" href="assets/css/ie10.css" />
		<script type="text/javascript" src="assets/js/ie10.js"></script>
		<![endif]-->
</head>
<body>
	<div class="top-page-header"></div>
		<div class="top-center">
			<br />
			<label class="top-label2"><%=msg%></label>
			<br /><br />
			<button id="popup" name="popup" class="top-btn-custom">확인</button>			
		</div>	
	<div class="top-page-header"></div>
	<!-- Javascript -->
	<script src="assets/js/jquery.js"></script>
	<script src="assets/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(function() {
			$("button[name='popup']").click(function() {
				self.close();
			});
			
			<% if (!target.equals("")) { %>
			$(window).unload(function() {
				opener.location.href = "<%=target%>";
			});
			<% } %>
		});
	</script>	
</body>
</html>